let array=[1,2,[3,4,[5,6,[7,8]]]];
console.log(array.flat(),
			array.flat(2),
			array.flat(Infinity));
let array2=[1,2,,4,5];
console.log(array2,
			array2.flat(),
			array2.flat(0)==array2);
